package com.xjrsoft.module.app.vo;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.util.LinkedHashSet;
import java.util.Set;

@Data
public class FunctionOtherVo {

    @JsonProperty("functionId")
    private String functionId;

    @JsonProperty("buttons")
    private Set<String> buttonCodeList;

    @JsonProperty("columns")
    private Set<String> columnCodeList;

    @JsonProperty("forms")
    private Set<Object> formCodeList;

    public Set<String> getButtonCodeList() {
        if (buttonCodeList == null) {
            buttonCodeList = new LinkedHashSet<>();
        }
        return buttonCodeList;
    }

    public Set<String> getColumnCodeList() {
        if (columnCodeList == null) {
            columnCodeList = new LinkedHashSet<>();
        }
        return columnCodeList;
    }

    public Set<Object> getFormCodeList() {
        if (formCodeList == null) {
            formCodeList = new LinkedHashSet<>();
        }
        return formCodeList;
    }
}
